<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of UDebug
 *
 * @author andrea
 */
class UDebug_vidwiz {
    private $log = "utilities/log.txt";
    private $separator = "#########################################################\n";
    
    /**
     * Stampa la stringa in un file
     * @param string $string La stringa da stampare nel file
     */
    public function debugLog($string){
        global $config;
        $path = $config['basedir'].$this->log;
        $handle = fopen($path, "a");
        $string = print_r($string,true);
        $string .= "\n";
        fwrite($handle, $string);
        fwrite($handle, $this->separator);
        fclose($handle);
    }
}

?>
